package activity.bluetooth;


import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.content.ServiceConnection;
import android.os.Bundle;
import android.os.Handler;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class BluetoothUI extends Activity {
	
	private Button showQRCodeButton;
	private Button readQRCodeButton;
	private Button exitButton;
	
	
	
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        initializeService();
        showQRCodeButton = (Button) findViewById(R.id.show_QR_code_button);
        showQRCodeButton.setOnClickListener(showQRCodeButtonListener);
        
        readQRCodeButton = (Button) findViewById(R.id.read_QR_code_button);
        readQRCodeButton.setOnClickListener(readQRCodeButtonListener);
        
        exitButton = (Button) findViewById(R.id.exit_button);
        exitButton.setOnClickListener(exitButtonListener);
        
        
    }
    
    private void initializeService(){
    	Intent intent = new Intent();
    	intent.setClassName("activity.bluetooth", "activity.bluetooth.BluetoothService");
    }
    
    private OnClickListener showQRCodeButtonListener = new OnClickListener() {
    	public void onClick(View v){
    		//TODO
    	}
    };
    private OnClickListener readQRCodeButtonListener = new OnClickListener() {
    	public void onClick(View v){
    		//TODO
    	}
    };
    private OnClickListener exitButtonListener = new OnClickListener() {
    	public void onClick(View v){
    		System.exit(0);
    	}
    };
}